package com.alimama.shop.service;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.alimama.entity.shop.Order;

public interface IOrderService {

	/**
	 * 按订单号查询订单
	 * 
	 * @return
	 */
	Order queryByOrderNo(@Param("OrderNo") String OrderNo);

	/**
	 * 分页查询
	 * 
	 * @param order
	 * @return
	 */
	List<Order> queryByPage(@Param("firstResult") int firstResult,@Param("maxResult") int maxResult);

	/**
	 * 添加
	 * 
	 * @param order
	 */
	boolean add(@Param("order") Order order);

	/**
	 * 修改
	 * 
	 * @param order
	 * @return
	 */
	boolean update(@Param("order") Order order);

}
